Advertisement
Guest User

Untitled

a guest
Jun 19th, 2023
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.96 KB | None | 0 0
  1. script running https://pastebin.com/KqVAQ1T9
  2.  
  3. C# program I am trying to run as a single line in this script https://pastebin.com/XyGmAqdL
  4.  
  5. The actual C# program that I want to run as a single line https://pastebin.com/HAb3YSJB
  6.  
  7. console output of that first link
  8.  
  9. "test inline powershell and C#.bat"
  10. running pscommand
  11. simple command, no string escaping
  12. pscommand[0]=Write-Host "Result is 1"
  13.  
  14. no delayed expansion, without quotes
  15. Result is 1
  16. no delayed expansion, in quotes
  17. Result is 1
  18. delayed expansion, without quotes
  19. Result is 1
  20. delayed expansion, in quotes
  21. Result is 1
  22.  
  23. running pscommand
  24. simple command, string escaping escaped
  25. pscommand[1]=Write-Host "Result is 2"
  26.  
  27. no delayed expansion, without quotes
  28. Result is 2
  29. no delayed expansion, in quotes
  30. Result is 2
  31. delayed expansion, without quotes
  32. Result is 2
  33. delayed expansion, in quotes
  34. Result is 2
  35.  
  36. running pscommand
  37. simple command, no string escaping plus terminator ";"
  38. pscommand[2]=Write-Host "Result is 3";
  39.  
  40. no delayed expansion, without quotes
  41. Result is 3
  42. no delayed expansion, in quotes
  43. Result is 3
  44. delayed expansion, without quotes
  45. Result is 3
  46. delayed expansion, in quotes
  47. Result is 3
  48.  
  49. running pscommand
  50. two simple command, string escaping escaped, separated by terminators ";"
  51. pscommand[3]=Write-Host "Result is first"; Write-Host "Result is second";
  52.  
  53. no delayed expansion, without quotes
  54. Result is first
  55. Result is second
  56. no delayed expansion, in quotes
  57. Result is first
  58. Result is second
  59. delayed expansion, without quotes
  60. Result is first
  61. Result is second
  62. delayed expansion, in quotes
  63. Result is first
  64. Result is second
  65.  
  66. running pscommand
  67. simple decision, strings not escaped, value is true
  68. pscommand[4]=if ($true) { Write-Host "Result is True"; } else { Write-Host "Result is False"; }
  69.  
  70. no delayed expansion, without quotes
  71. Result is True
  72. no delayed expansion, in quotes
  73. Result is True
  74. delayed expansion, without quotes
  75. Result is True
  76. delayed expansion, in quotes
  77. Result is True
  78.  
  79. running pscommand
  80. simple decision, strings not escaped, value is false
  81. pscommand[5]=if ($false) { Write-Host "Result is True"; } else { Write-Host "Result is False"; }
  82.  
  83. no delayed expansion, without quotes
  84. Result is False
  85. no delayed expansion, in quotes
  86. Result is False
  87. delayed expansion, without quotes
  88. Result is False
  89. delayed expansion, in quotes
  90. Result is False
  91.  
  92. running pscommand
  93. simple decision, value is true, quotes not escaped, written in multiline format
  94. pscommand[6]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  95.  
  96. no delayed expansion, without quotes
  97. Result is True
  98. no delayed expansion, in quotes
  99. Result is True
  100. delayed expansion, without quotes
  101. Result is True
  102. delayed expansion, in quotes
  103. Result is True
  104.  
  105. running pscommand
  106. simple decision, value is false, quotes escaped, written in multiline format
  107. pscommand[7]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  108.  
  109. no delayed expansion, without quotes
  110. Result is False
  111. no delayed expansion, in quotes
  112. Result is False
  113. delayed expansion, without quotes
  114. Result is False
  115. delayed expansion, in quotes
  116. Result is False
  117.  
  118. running pscommand
  119. simple decision, value is false, quotes escaped, written in multiline format
  120. pscommand[8]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  121.  
  122. no delayed expansion, without quotes
  123. Result is True
  124. no delayed expansion, in quotes
  125. Result is True
  126. delayed expansion, without quotes
  127. Result is True
  128. delayed expansion, in quotes
  129. Result is True
  130.  
  131. running pscommand with ps_argument_1 = true
  132. simple decision, value is determined by variable ps_argument_1
  133. quotes escaped, written in multiline format
  134. this will not work because pscommand[9] was created with empty ps_argument_1
  135. pscommand[9]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  136.  
  137. no delayed expansion, without quotes
  138. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  139. At line:1 char:5
  140. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  141. + ~
  142. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  143. + FullyQualifiedErrorId : CommandNotFoundException
  144.  
  145. no delayed expansion, in quotes
  146. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  147. At line:1 char:5
  148. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  149. + ~
  150. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  151. + FullyQualifiedErrorId : CommandNotFoundException
  152.  
  153. delayed expansion, without quotes
  154. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  155. At line:1 char:5
  156. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  157. + ~
  158. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  159. + FullyQualifiedErrorId : CommandNotFoundException
  160.  
  161. delayed expansion, in quotes
  162. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  163. At line:1 char:5
  164. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  165. + ~
  166. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  167. + FullyQualifiedErrorId : CommandNotFoundException
  168.  
  169.  
  170. running pscommand with ps_argument_1 = false
  171. simple decision, value is determined by variable ps_argument_1
  172. quotes escaped, written in multiline format
  173. this will not work because pscommand[9] was created with empty ps_argument_1
  174. pscommand[9]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  175.  
  176. no delayed expansion, without quotes
  177. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  178. At line:1 char:5
  179. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  180. + ~
  181. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  182. + FullyQualifiedErrorId : CommandNotFoundException
  183.  
  184. no delayed expansion, in quotes
  185. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  186. At line:1 char:5
  187. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  188. + ~
  189. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  190. + FullyQualifiedErrorId : CommandNotFoundException
  191.  
  192. delayed expansion, without quotes
  193. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  194. At line:1 char:5
  195. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  196. + ~
  197. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  198. + FullyQualifiedErrorId : CommandNotFoundException
  199.  
  200. delayed expansion, in quotes
  201. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  202. At line:1 char:5
  203. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  204. + ~
  205. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  206. + FullyQualifiedErrorId : CommandNotFoundException
  207.  
  208.  
  209. running pscommand
  210. simple decision, value is true, quotes not escaped, written in multiline format
  211. pscommand[10]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  212.  
  213. no delayed expansion, without quotes
  214. Result is True
  215. no delayed expansion, in quotes
  216. Result is True
  217. delayed expansion, without quotes
  218. Result is True
  219. delayed expansion, in quotes
  220. Result is True
  221.  
  222. running pscommand
  223. simple decision, value is true, quotes not escaped, written in multiline format
  224. pscommand[11]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  225.  
  226. no delayed expansion, without quotes
  227. Result is False
  228. no delayed expansion, in quotes
  229. Result is False
  230. delayed expansion, without quotes
  231. Result is False
  232. delayed expansion, in quotes
  233. Result is False
  234.  
  235. running pscommand with ps_argument_1 = true
  236. simple decision, value is determined by variable ps_argument_1
  237. quotes not escaped, written in multiline format
  238. this will not work because pscommand[12] was created with empty ps_argument_1
  239. pscommand[12]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  240.  
  241. no delayed expansion, without quotes
  242. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  243. At line:1 char:5
  244. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  245. + ~
  246. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  247. + FullyQualifiedErrorId : CommandNotFoundException
  248.  
  249. no delayed expansion, in quotes
  250. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  251. At line:1 char:5
  252. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  253. + ~
  254. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  255. + FullyQualifiedErrorId : CommandNotFoundException
  256.  
  257. delayed expansion, without quotes
  258. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  259. At line:1 char:5
  260. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  261. + ~
  262. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  263. + FullyQualifiedErrorId : CommandNotFoundException
  264.  
  265. delayed expansion, in quotes
  266. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  267. At line:1 char:5
  268. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  269. + ~
  270. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  271. + FullyQualifiedErrorId : CommandNotFoundException
  272.  
  273.  
  274. running pscommand with ps_argument_1 = false
  275. this will not work because pscommand[12] was created with empty ps_argument_1
  276. pscommand[12]=if ($){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  277.  
  278. no delayed expansion, without quotes
  279. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  280. At line:1 char:5
  281. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  282. + ~
  283. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  284. + FullyQualifiedErrorId : CommandNotFoundException
  285.  
  286. no delayed expansion, in quotes
  287. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  288. At line:1 char:5
  289. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  290. + ~
  291. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  292. + FullyQualifiedErrorId : CommandNotFoundException
  293.  
  294. delayed expansion, without quotes
  295. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  296. At line:1 char:5
  297. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  298. + ~
  299. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  300. + FullyQualifiedErrorId : CommandNotFoundException
  301.  
  302. delayed expansion, in quotes
  303. $ : The term '$' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  304. At line:1 char:5
  305. + if ($){Write-Host Result is True; } else {Write-Host Result is False; ...
  306. + ~
  307. + CategoryInfo : ObjectNotFound: ($:String) [], CommandNotFoundException
  308. + FullyQualifiedErrorId : CommandNotFoundException
  309.  
  310.  
  311. running pscommand with ps_argument_1 = true
  312. simple decision, value is determined by variable ps_argument_1
  313. quotes escaped, written in multiline format
  314. this time, pscommand set with internal variable pre-set
  315. pscommand[9]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  316.  
  317. no delayed expansion, without quotes
  318. Result is True
  319. no delayed expansion, in quotes
  320. Result is True
  321. delayed expansion, without quotes
  322. Result is True
  323. delayed expansion, in quotes
  324. Result is True
  325.  
  326. running pscommand with ps_argument_1 = false
  327. simple decision, value is determined by variable ps_argument_1
  328. quotes escaped, written in multiline format
  329. this time, pscommand set with internal variable pre-set
  330. pscommand[9]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  331.  
  332. no delayed expansion, without quotes
  333. Result is False
  334. no delayed expansion, in quotes
  335. Result is False
  336. delayed expansion, without quotes
  337. Result is False
  338. delayed expansion, in quotes
  339. Result is False
  340.  
  341. running pscommand with ps_argument_1 = true
  342. simple decision, value is determined by variable ps_argument_1
  343. quotes not escaped, written in multiline format
  344. pscommand[12]=if ($true){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  345.  
  346. no delayed expansion, without quotes
  347. Result is True
  348. no delayed expansion, in quotes
  349. Result is True
  350. delayed expansion, without quotes
  351. Result is True
  352. delayed expansion, in quotes
  353. Result is True
  354.  
  355. running pscommand with ps_argument_1 = false
  356. pscommand[12]=if ($false){Write-Host "Result is True"; } else {Write-Host "Result is False"; }
  357.  
  358. no delayed expansion, without quotes
  359. Result is False
  360. no delayed expansion, in quotes
  361. Result is False
  362. delayed expansion, without quotes
  363. Result is False
  364. delayed expansion, in quotes
  365. Result is False
  366.  
  367.  
  368. 1
  369. At line:1 char:26
  370. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  371. + ~
  372. Unrecognized token in source text.
  373. At line:1 char:214
  374. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  375. + ~
  376. Unrecognized token in source text.
  377. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  378. + FullyQualifiedErrorId : UnrecognizedToken
  379.  
  380. At line:1 char:26
  381. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  382. + ~
  383. Unrecognized token in source text.
  384. At line:1 char:218
  385. + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
  386. + ~
  387. Unrecognized token in source text.
  388. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  389. + FullyQualifiedErrorId : UnrecognizedToken
  390.  
  391. At line:1 char:26
  392. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  393. + ~
  394. Unrecognized token in source text.
  395. At line:1 char:215
  396. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  397. + ~
  398. Unrecognized token in source text.
  399. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  400. + FullyQualifiedErrorId : UnrecognizedToken
  401.  
  402. 2
  403. At line:1 char:29
  404. + Add-Type -TypeDefinition @' using System; public class LogicCheck { p ...
  405. + ~
  406. No characters are allowed after a here-string header but before the end of the line.
  407. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  408. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  409.  
  410. At line:1 char:29
  411. + Add-Type -TypeDefinition @' using System; public class LogicCheck { p ...
  412. + ~
  413. No characters are allowed after a here-string header but before the end of the line.
  414. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  415. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  416.  
  417. At line:1 char:29
  418. + Add-Type -TypeDefinition @' using System; public class LogicCheck { p ...
  419. + ~
  420. No characters are allowed after a here-string header but before the end of the line.
  421. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  422. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  423.  
  424. 3
  425. At line:1 char:29
  426. + Add-Type -TypeDefinition @" using System; public class LogicCheck { p ...
  427. + ~
  428. No characters are allowed after a here-string header but before the end of the line.
  429. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  430. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  431.  
  432. At line:1 char:29
  433. + Add-Type -TypeDefinition @" using System; public class LogicCheck { p ...
  434. + ~
  435. No characters are allowed after a here-string header but before the end of the line.
  436. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  437. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  438.  
  439. At line:1 char:29
  440. + Add-Type -TypeDefinition @" using System; public class LogicCheck { p ...
  441. + ~
  442. No characters are allowed after a here-string header but before the end of the line.
  443. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  444. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  445.  
  446. 4
  447. At line:1 char:212
  448. + ... is True); } else { Console.WriteLine(Result is False); } } }@ [LogicC ...
  449. + ~
  450. Unrecognized token in source text.
  451. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  452. + FullyQualifiedErrorId : UnrecognizedToken
  453.  
  454. At line:1 char:216
  455. + ... True"); } else { Console.WriteLine("Result is False"); } } }@ [LogicC ...
  456. + ~
  457. Unrecognized token in source text.
  458. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  459. + FullyQualifiedErrorId : UnrecognizedToken
  460.  
  461. At line:1 char:213
  462. + ... is True); } else { Console.WriteLine(Result is False); } } }@ [LogicC ...
  463. + ~
  464. Unrecognized token in source text.
  465. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  466. + FullyQualifiedErrorId : UnrecognizedToken
  467.  
  468. 5
  469. Add-Type -TypeDefinition @ using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is False); } } } @ [LogicCheck]::Check($false)
  470. Add-Type -TypeDefinition @ using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is False"); } } } @ [LogicCheck]::Check($false)
  471. Add-Type -TypeDefinition @ using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(^Result is True); } else { Console.WriteLine(Result is False); } } } @ [LogicCheck]::Check($false)
  472. 6
  473. At line:1 char:26
  474. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  475. + ~
  476. Unrecognized token in source text.
  477. At line:1 char:214
  478. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  479. + ~
  480. Unrecognized token in source text.
  481. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  482. + FullyQualifiedErrorId : UnrecognizedToken
  483.  
  484. At line:1 char:26
  485. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  486. + ~
  487. Unrecognized token in source text.
  488. At line:1 char:218
  489. + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
  490. + ~
  491. Unrecognized token in source text.
  492. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  493. + FullyQualifiedErrorId : UnrecognizedToken
  494.  
  495. At line:1 char:26
  496. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  497. + ~
  498. Unrecognized token in source text.
  499. At line:1 char:214
  500. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  501. + ~
  502. Unrecognized token in source text.
  503. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  504. + FullyQualifiedErrorId : UnrecognizedToken
  505.  
  506. 7
  507. At line:1 char:26
  508. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  509. + ~
  510. Unrecognized token in source text.
  511. At line:1 char:214
  512. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  513. + ~
  514. Unrecognized token in source text.
  515. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  516. + FullyQualifiedErrorId : UnrecognizedToken
  517.  
  518. At line:1 char:26
  519. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  520. + ~
  521. Unrecognized token in source text.
  522. At line:1 char:218
  523. + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
  524. + ~
  525. Unrecognized token in source text.
  526. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  527. + FullyQualifiedErrorId : UnrecognizedToken
  528.  
  529. At line:1 char:26
  530. + Add-Type -TypeDefinition @ using System; public class LogicCheck { pu ...
  531. + ~
  532. Unrecognized token in source text.
  533. At line:1 char:214
  534. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  535. + ~
  536. Unrecognized token in source text.
  537. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  538. + FullyQualifiedErrorId : UnrecognizedToken
  539.  
  540. 8
  541. At line:1 char:27
  542. + Add-Type -TypeDefinition @ using System; public class LogicCheck { p ...
  543. + ~
  544. Unrecognized token in source text.
  545. At line:1 char:215
  546. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  547. + ~
  548. Unrecognized token in source text.
  549. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  550. + FullyQualifiedErrorId : UnrecognizedToken
  551.  
  552. At line:1 char:27
  553. + Add-Type -TypeDefinition @ using System; public class LogicCheck { p ...
  554. + ~
  555. Unrecognized token in source text.
  556. At line:1 char:219
  557. + ... rue"); } else { Console.WriteLine("Result is False"); } } } @ [LogicC ...
  558. + ~
  559. Unrecognized token in source text.
  560. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  561. + FullyQualifiedErrorId : UnrecognizedToken
  562.  
  563. At line:1 char:27
  564. + Add-Type -TypeDefinition @ using System; public class LogicCheck { p ...
  565. + ~
  566. Unrecognized token in source text.
  567. At line:1 char:215
  568. + ... s True); } else { Console.WriteLine(Result is False); } } } @ [LogicC ...
  569. + ~
  570. Unrecognized token in source text.
  571. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  572. + FullyQualifiedErrorId : UnrecognizedToken
  573.  
  574. 9
  575. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  576. At line:1 char:1
  577. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  578. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  579. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  580. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  581.  
  582. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  583. At line:1 char:40
  584. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  585. + ~~~~~~
  586. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  587. + FullyQualifiedErrorId : CommandNotFoundException
  588.  
  589. At line:1 char:124
  590. + ... { public static void Check(bool condition) { if (condition) { Console ...
  591. + ~
  592. Missing closing '}' in statement block or type definition.
  593. At line:1 char:107
  594. + ... class LogicCheck { public static void Check(bool condition) { if (con ...
  595. + ~
  596. Missing closing '}' in statement block or type definition.
  597. At line:1 char:64
  598. + ... -Type -TypeDefinition using System; public class LogicCheck { public ...
  599. + ~
  600. Missing closing '}' in statement block or type definition.
  601. At line:1 char:159
  602. + ... dition) { if (condition) { Console.WriteLine"Result is True"); } else ...
  603. + ~
  604. Unexpected token ')' in expression or statement.
  605. At line:1 char:162
  606. + ... ion) { if (condition) { Console.WriteLine"Result is True"); } else { ...
  607. + ~
  608. Unexpected token '}' in expression or statement.
  609. At line:1 char:211
  610. + ... is True"); } else { Console.WriteLine("Result is False"); } } } [Logi ...
  611. + ~
  612. Unexpected token '}' in expression or statement.
  613. At line:1 char:213
  614. + ... True"); } else { Console.WriteLine("Result is False"); } } } [LogicC ...
  615. + ~
  616. Unexpected token '}' in expression or statement.
  617. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  618. + FullyQualifiedErrorId : MissingEndCurlyBrace
  619.  
  620. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  621. At line:1 char:1
  622. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  623. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  624. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  625. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  626.  
  627. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  628. At line:1 char:40
  629. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  630. + ~~~~~~
  631. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  632. + FullyQualifiedErrorId : CommandNotFoundException
  633.  
  634. 10
  635. At line:1 char:30
  636. + Add-Type -TypeDefinition @' using System; public class LogicCheck { ...
  637. + ~
  638. No characters are allowed after a here-string header but before the end of the line.
  639. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  640. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  641.  
  642. At line:1 char:30
  643. + Add-Type -TypeDefinition @' using System; public class LogicCheck { ...
  644. + ~
  645. No characters are allowed after a here-string header but before the end of the line.
  646. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  647. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  648.  
  649. At line:1 char:30
  650. + Add-Type -TypeDefinition @' using System; public class LogicCheck { ...
  651. + ~
  652. No characters are allowed after a here-string header but before the end of the line.
  653. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  654. + FullyQualifiedErrorId : UnexpectedCharactersAfterHereStringHeader
  655.  
  656. 11
  657. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  658. At line:1 char:1
  659. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  660. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  661. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  662. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  663.  
  664. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  665. At line:1 char:40
  666. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  667. + ~~~~~~
  668. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  669. + FullyQualifiedErrorId : CommandNotFoundException
  670.  
  671. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  672. At line:1 char:1
  673. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  674. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  675. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  676. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  677.  
  678. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  679. At line:1 char:40
  680. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  681. + ~~~~~~
  682. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  683. + FullyQualifiedErrorId : CommandNotFoundException
  684.  
  685. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  686. At line:1 char:1
  687. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  688. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  689. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  690. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  691.  
  692. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  693. At line:1 char:40
  694. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  695. + ~~~~~~
  696. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  697. + FullyQualifiedErrorId : CommandNotFoundException
  698.  
  699. 12
  700. Add-Type -TypeDefinition using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is False); } } } [LogicCheck]::Check($false)
  701. Add-Type -TypeDefinition using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is False"); } } } [LogicCheck]::Check($false)
  702. Add-Type -TypeDefinition using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is False); } } } [LogicCheck]::Check($false)
  703. 13
  704. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  705. At line:1 char:1
  706. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  707. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  708. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  709. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  710.  
  711. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  712. At line:1 char:40
  713. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  714. + ~~~~~~
  715. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  716. + FullyQualifiedErrorId : CommandNotFoundException
  717.  
  718. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  719. At line:1 char:1
  720. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  721. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  722. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  723. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  724.  
  725. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  726. At line:1 char:40
  727. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  728. + ~~~~~~
  729. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  730. + FullyQualifiedErrorId : CommandNotFoundException
  731.  
  732. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  733. At line:1 char:1
  734. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  735. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  736. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  737. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  738.  
  739. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  740. At line:1 char:40
  741. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  742. + ~~~~~~
  743. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  744. + FullyQualifiedErrorId : CommandNotFoundException
  745.  
  746. 14
  747. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  748. At line:1 char:1
  749. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  750. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  751. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  752. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  753.  
  754. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  755. At line:1 char:1
  756. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  757. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  758. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  759. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  760.  
  761. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  762. At line:1 char:1
  763. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  764. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  765. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  766. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  767.  
  768. 15
  769. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  770. At line:1 char:1
  771. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  772. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  773. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  774. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  775.  
  776. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  777. At line:1 char:41
  778. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  779. + ~~~~~~
  780. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  781. + FullyQualifiedErrorId : CommandNotFoundException
  782.  
  783. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  784. At line:1 char:1
  785. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  786. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  787. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  788. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  789.  
  790. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  791. At line:1 char:41
  792. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  793. + ~~~~~~
  794. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  795. + FullyQualifiedErrorId : CommandNotFoundException
  796.  
  797. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  798. At line:1 char:1
  799. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  800. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  801. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  802. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  803.  
  804. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  805. At line:1 char:41
  806. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  807. + ~~~~~~
  808. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  809. + FullyQualifiedErrorId : CommandNotFoundException
  810.  
  811. 16
  812. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  813. At line:1 char:1
  814. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  815. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  816. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  817. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  818.  
  819. Add-Type : A positional parameter cannot be found that accepts argument 'Result'.
  820. At line:1 char:1
  821. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  822. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  823. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  824. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  825.  
  826. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  827. At line:1 char:1
  828. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  829. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  830. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  831. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  832.  
  833. 17
  834. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  835. At line:1 char:1
  836. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  837. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  838. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  839. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  840.  
  841. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  842. At line:1 char:40
  843. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  844. + ~~~~~~
  845. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  846. + FullyQualifiedErrorId : CommandNotFoundException
  847.  
  848. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  849. At line:1 char:1
  850. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  851. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  852. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  853. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  854.  
  855. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  856. At line:1 char:40
  857. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  858. + ~~~~~~
  859. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  860. + FullyQualifiedErrorId : CommandNotFoundException
  861.  
  862. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  863. At line:1 char:1
  864. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  865. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  866. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  867. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  868.  
  869. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  870. At line:1 char:40
  871. + Add-Type -TypeDefinition using System; public class LogicCheck { publ ...
  872. + ~~~~~~
  873. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  874. + FullyQualifiedErrorId : CommandNotFoundException
  875.  
  876. 18
  877. Add-Type : c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : Unexpected character '$'
  878. c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
  879. False); } } } [LogicCheck]::Check($false)
  880. At line:1 char:1
  881. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  882. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  883. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  884. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  885.  
  886. Add-Type : c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : Expected class, delegate, enum, interface, or struct
  887. c:\Users\user\AppData\Local\Temp\k2vdqdjj.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
  888. False); } } } [LogicCheck]::Check($false)
  889. At line:1 char:1
  890. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  891. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  892. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  893. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  894.  
  895. Add-Type : Cannot add type. Compilation errors occurred.
  896. At line:1 char:1
  897. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  898. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  899. + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
  900. + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
  901.  
  902. Add-Type : c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : Unexpected character '$'
  903. c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is
  904. False"); } } } [LogicCheck]::Check($false)
  905. At line:1 char:1
  906. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  907. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  908. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  909. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  910.  
  911. Add-Type : c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : Expected class, delegate, enum, interface, or struct
  912. c:\Users\user\AppData\Local\Temp\jw5be4s2.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine("Result is True"); } else { Console.WriteLine("Result is
  913. False"); } } } [LogicCheck]::Check($false)
  914. At line:1 char:1
  915. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  916. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  917. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  918. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  919.  
  920. Add-Type : Cannot add type. Compilation errors occurred.
  921. At line:1 char:1
  922. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  923. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  924. + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
  925. + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
  926.  
  927. Add-Type : c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : Unexpected character '$'
  928. c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
  929. False); } } } [LogicCheck]::Check($false)
  930. At line:1 char:1
  931. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  932. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  933. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  934. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  935.  
  936. Add-Type : c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : Expected class, delegate, enum, interface, or struct
  937. c:\Users\user\AppData\Local\Temp\jzmkj2jv.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
  938. False); } } } [LogicCheck]::Check($false)
  939. At line:1 char:1
  940. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  941. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  942. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  943. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  944.  
  945. Add-Type : Cannot add type. Compilation errors occurred.
  946. At line:1 char:1
  947. + Add-Type -TypeDefinition ' using System; public class LogicCheck { pu ...
  948. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  949. + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
  950. + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
  951.  
  952. 19
  953. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  954. At line:1 char:1
  955. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  956. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  957. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  958. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  959.  
  960. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  961. At line:1 char:41
  962. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  963. + ~~~~~~
  964. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  965. + FullyQualifiedErrorId : CommandNotFoundException
  966.  
  967. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  968. At line:1 char:1
  969. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  970. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  971. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  972. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  973.  
  974. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  975. At line:1 char:41
  976. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  977. + ~~~~~~
  978. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  979. + FullyQualifiedErrorId : CommandNotFoundException
  980.  
  981. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  982. At line:1 char:1
  983. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  984. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  985. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  986. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  987.  
  988. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  989. At line:1 char:41
  990. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  991. + ~~~~~~
  992. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  993. + FullyQualifiedErrorId : CommandNotFoundException
  994.  
  995. 20
  996. Add-Type : c:\Users\user\AppData\Local\Temp\sbwfbwrg.0.cs(1) : Expected class, delegate, enum, interface, or struct
  997. c:\Users\user\AppData\Local\Temp\sbwfbwrg.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(Result is True); } else { Console.WriteLine(Result is
  998. False); } } } [LogicCheck]::Check(False)
  999. At line:1 char:1
  1000. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  1001. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1002. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  1003. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  1004.  
  1005. Add-Type : Cannot add type. Compilation errors occurred.
  1006. At line:1 char:1
  1007. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  1008. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1009. + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
  1010. + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
  1011.  
  1012. Add-Type : A positional parameter cannot be found that accepts argument 'Result'.
  1013. At line:1 char:1
  1014. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  1015. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1016. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1017. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1018.  
  1019. Add-Type : c:\Users\user\AppData\Local\Temp\d2s0cpsx.0.cs(1) : Expected class, delegate, enum, interface, or struct
  1020. c:\Users\user\AppData\Local\Temp\d2s0cpsx.0.cs(1) : >>> using System; public class LogicCheck { public static void Check(bool condition) { if (condition) { Console.WriteLine(^Result is True); } else { Console.WriteLine(Result is
  1021. False); } } } [LogicCheck]::Check(False)
  1022. At line:1 char:1
  1023. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  1024. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1025. + CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
  1026. + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
  1027.  
  1028. Add-Type : Cannot add type. Compilation errors occurred.
  1029. At line:1 char:1
  1030. + Add-Type -TypeDefinition " using System; public class LogicCheck { pu ...
  1031. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1032. + CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
  1033. + FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
  1034.  
  1035. 21
  1036. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  1037. At line:1 char:2
  1038. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  1039. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1040. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1041. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1042.  
  1043. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  1044. At line:1 char:41
  1045. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  1046. + ~~~~~~
  1047. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  1048. + FullyQualifiedErrorId : CommandNotFoundException
  1049.  
  1050. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  1051. At line:1 char:2
  1052. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  1053. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1054. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1055. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1056.  
  1057. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  1058. At line:1 char:41
  1059. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  1060. + ~~~~~~
  1061. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  1062. + FullyQualifiedErrorId : CommandNotFoundException
  1063.  
  1064. Add-Type : A positional parameter cannot be found that accepts argument 'System'.
  1065. At line:1 char:2
  1066. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  1067. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1068. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1069. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1070.  
  1071. public : The term 'public' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  1072. At line:1 char:41
  1073. + Add-Type -TypeDefinition using System; public class LogicCheck { pub ...
  1074. + ~~~~~~
  1075. + CategoryInfo : ObjectNotFound: (public:String) [], CommandNotFoundException
  1076. + FullyQualifiedErrorId : CommandNotFoundException
  1077.  
  1078. 22
  1079. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  1080. At line:1 char:2
  1081. + Add-Type -TypeDefinition ' using System; public class LogicCheck { p ...
  1082. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1083. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1084. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1085.  
  1086. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  1087. At line:1 char:2
  1088. + Add-Type -TypeDefinition ' using System; public class LogicCheck { p ...
  1089. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1090. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1091. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1092.  
  1093. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  1094. At line:1 char:2
  1095. + Add-Type -TypeDefinition ' using System; public class LogicCheck { p ...
  1096. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1097. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1098. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1099.  
  1100. 23
  1101. The string is missing the terminator: ".
  1102. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  1103. + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
  1104.  
  1105. The string is missing the terminator: ".
  1106. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  1107. + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
  1108.  
  1109. The string is missing the terminator: ".
  1110. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  1111. + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
  1112.  
  1113. 24
  1114. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  1115. At line:1 char:2
  1116. + Add-Type -TypeDefinition " using System; public class LogicCheck { p ...
  1117. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1118. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1119. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1120.  
  1121. Add-Type : A positional parameter cannot be found that accepts argument 'Result'.
  1122. At line:1 char:2
  1123. + Add-Type -TypeDefinition " using System; public class LogicCheck { p ...
  1124. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1125. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1126. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1127.  
  1128. Add-Type : A positional parameter cannot be found that accepts argument '[LogicCheck]::Check'.
  1129. At line:1 char:2
  1130. + Add-Type -TypeDefinition " using System; public class LogicCheck { p ...
  1131. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1132. + CategoryInfo : InvalidArgument: (:) [Add-Type], ParameterBindingException
  1133. + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.AddTypeCommand
  1134.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement