PC doesn't apply to the Guard.
As I read it:
“The purpose of the Posse Comitatus Act in concert with the Insurrection Act of 1807 is to limit the powers of the federal government in using federal military personnel to enforce domestic policies within the United States.”
Surely any lawyer worth their salt or any person with common sense could argue that preventing a foreign invasion from outside the US is not a domestic issue.